<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FlyGreenwich's Aircraft</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
String name = (String)request.getAttribute("name");
String date = (String)request.getAttribute("selecttime");
Integer seat = (Integer)request.getAttribute("seat_no");
String depart = (String)request.getAttribute("depart");
String dest = (String)request.getAttribute("dest");
String cost = (String)request.getAttribute("cost");
String bookingno = (String)request.getAttribute("bookingno");
%>
<a name="top" id="top"></a>
<center>
	<jsp:include page="/WEB-INF/pages/menu_bar.jsp"></jsp:include>
	<jsp:include page="/WEB-INF/pages/header.jsp"></jsp:include>
	<jsp:include page="/WEB-INF/pages/content.jsp"></jsp:include>
	<jsp:include page="/WEB-INF/pages/sidebar.jsp"></jsp:include>
	<div id="mainbar">
      <h1><a name="css" id="css"></a>Booking Status</h1>
      
      <% if(name!=null){ %>
	  <table>
	  	<tr>
	  		<td>Hi, <%=name %>, please find your booking information below. </td>
	  	</tr>
	  	<tr>
	  		<td>
	  			<table border="1">
	  				<tr>
	  					<td>Date</td>
	  					<td>Seat No</td>
	  					<td>Departure</td>
	  					<td>Destination</td>
	  					<td>Price</td>
	  					<td>Booking No</td>
	  				</tr>
	  				<tr>
	  					<td><%= date %> 09:00 AM</td>
	  					<td><%= seat %></td>
	  					<td><%= depart %></td>
	  					<td><%= dest %></td>
	  					<td><%= cost %></td>
	  					<td><%= bookingno %></td>
	  				</tr>
	  			</table>
	  		</td>
	  	</tr>
	  	<tr>
	  		<td><a href="http://localhost:8080/FlyGreenwichAirline/">Go back and book flight again. </a></td>
	  	</tr>
	  </table>
	  <%}else{ %>
	  <table>
	  	<tr>
	  		<td>There is no flight with this booking no. </td>
	  	</tr>
	  	<tr>
	  		<td><a href="http://localhost:8080/FlyGreenwichAirline/">Go back and search flight again. </a></td>
	  	</tr>
	  </table>
	  <%} %>
    </div>
    <br><br><br><br><br><br><br><br><br><br>
	<jsp:include page="/WEB-INF/pages/footer.jsp"></jsp:include>
</center>
</body>
</html>


